BIN = myrsa
OBJECTS = base64.o helper.o rsakeys.o myrsa.o crypto.o

all: $(OBJECTS)
	g++  $(OBJECTS) -lgmpxx -lgmp -o $(BIN)

base64.o: base64.cpp
	g++ -c base64.cpp

helper.o: helper.cpp
	g++ -c helper.cpp

rsakeys.o:rsakeys.cpp
	g++ -c rsakeys.cpp

myrsa.o: myrsa.cpp
	g++ -c myrsa.cpp

crypto.o: crypto.cpp
	g++ -c crypto.cpp

clean:
	rm *.o $(BIN)
